/**
 * Created by XiaAo on 2017/5/5.
 */


var downloadModule = require('../../ngModule/ngModuleDownload');//请求书籍管理Module

downloadModule.controller('downloadCtrl',['$rootScope','$scope','$state','$http',function ($rootScope, $scope,$state,$http) {

    $rootScope.navHighLight=['','','','','','','btn-primary-focus',''];//导航栏高亮显示

    // console.log('执行到');

    $http({
        method: 'POST',
        url: '../showstudents/QueryAllStudentsAction.action'
        // catch:true,
    }).
    then(function(data, status, headers, config) {
        // this callback will be called asynchronously
        // when the response is available
        console.log('data请求成功------');
        console.log(data);
    }).
    catch(function(data, status, headers, config) {
        console.log('data请求失败------');
        console.error();
    });

}]);

